<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>tree2code</title>
  </head>
  <body bgcolor="#FFFFFF">
    <center>Scilab Function</center>
    <div align="right">Last update : 12/05/2006</div>
    <p>
      <b>tree2code</b> -  generates ascii definition of a Scilab function</p>
    <h3>
      <font color="blue">Calling Sequence</font>
    </h3>
    <dl>
      <dd>
        <tt>txt=tree2code(tree,prettyprint)  </tt>
      </dd>
    </dl>
    <h3>
      <font color="blue">Parameters</font>
    </h3>
    <ul>
      <li>
        <tt>
          <b>tree</b>
        </tt>: a macro tree (coming from macr2tree)</li>
      <li>
        <tt>
          <b>prettyprint</b>
        </tt>: optional boolean value<ul>
          <li>
            <tt>
              <b>%T</b>
            </tt>: generated code is indented and beautified</li>
          <li>
            <tt>
              <b>%F</b>
            </tt>: generated code is not beautified (default)</li>
        </ul>
      </li>
      <li>
        <tt>
          <b>txt</b>
        </tt>: a column vector of strings, the text giving the Scilab instructions</li>
    </ul>
    <h3>
      <font color="blue">Description</font>
    </h3>
    <p>
    Given a loaded Scilab function "tree" (returned by macr2tree), tree2code allows to
    re-generate the code.</p>
    <h3>
      <font color="blue">Examples</font>
    </h3>
    <pre>

tree=macr2tree(cosh);
txt=tree2code(tree,%T);
write(%io(2),txt,'(a)');
 
  </pre>
    <h3>
      <font color="blue">See Also</font>
    </h3>
    <p>
      <a href="../functions/macr2tree.htm">
        <tt>
          <b>macr2tree</b>
        </tt>
      </a>,&nbsp;&nbsp;</p>
    <h3>
      <font color="blue">Authors</font>
    </h3>
    <dl>
      <dd>
        <b></b>V.C.</dd>
    </dl>
  </body>
</html>
